package com.otr.ai.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.ai.tool.annotation.ToolParam;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@JsonInclude(Include.NON_NULL)
public class Product {

  @ToolParam(description = "商品id")
  private Long id;

  @ToolParam(description = "商品名称")
  private String name;

  @ToolParam(description = "商品价格")
  private BigDecimal price;

  @ToolParam(description = "商品描述")
  public String desc;

  @ToolParam(description = "商品库存")
  private Integer stock;
}
